package Homework;
import java.util.Scanner;
import java.util.Random;
public class test31 {
    public static void main(String[] args) {
        Scanner SC=new Scanner(System.in);
 Random RD =new Random();
 System.out.println("请猜0到100的数字");
 int number=RD.nextInt(101);
 int i=0;
 while(true){
     int guess=SC.nextInt();
     i++;
     if(guess==number){
         if(i==1){
             System.out.println("你真厉害一次就猜对了");
         }else if(i>1 && i<4 ){
             System.out.println("你很聪明猜对了！");
         }else{
             System.out.println("笨蛋猜了那么多次！");
         }System.out.println("程序结束");
     }else if(guess>number){
         System.out.println("太大辣！");
     }else{
         System.out.println("太小辣！");
     }
 }
    }
}
